package util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import com.tony.common.web.upload.UploadService;

public class TestSpring {
	public static void main(String[] args) {
		ApplicationContext ac = new FileSystemXmlApplicationContext(new String[]{
				"D:/Workshop_Studio3.3/eclipse/workspace/download/WebContent/WEB-INF/applicationContext.xml",
				"D:/Workshop_Studio3.3/eclipse/workspace/download/WebContent/WEB-INF/applicationContext-security.xml"}); 
		UploadService uploadSer = (UploadService) ac.getBean("uploadService");
		try {
			System.out.println(uploadSer.getAttachObject("bc_0001", "1"));
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
